import storage from '../../utils/storage'

export default {
  state: {
    isCollapse: storage.getOrInsert('sidebar_collapse', false)
  },
  mutations: {
    exchange(state) {
      state.isCollapse = !state.isCollapse
      storage.set('sidebar_collapse', state.isCollapse)
    }
  }
}
